/**
 * @filename:Synbd Dec 8, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(基础资料同步实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_synbd")
@ApiModel(value="t_synbd对象", description="基础资料同步表")
public class Synbd extends Model<Synbd> {

	private static final long serialVersionUID = 1702005779006447L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "主键")
    private Long id;
    
    @TableField(value = "Ftype") 	
	@ApiModelProperty(name = "Ftype" , value = "同步类型")
    private String Ftype;
    
    @TableField(value = "Fsyndate")
	@ApiModelProperty(name = "Fsyndate" , value = "最后同步时间")
    private Date Fsyndate;

    @TableField(value = "reloadRes")
    @ApiModelProperty(name = "reloadRes" , value = "同步结果")
    private Boolean reloadRes;

    @TableField(value = "reloadOrder")
    @ApiModelProperty(name = "reloadOrder" , value = "是否正在同步")
    private Boolean reloadOrder;

    @TableField(value = "reloadMsg")
    @ApiModelProperty(name = "reloadMsg" , value = "报错信息")
    private String reloadMsg;

    @TableField(value = "reloadStartTime")
    @ApiModelProperty(name = "reloadStartTime" , value = "同步开始时间")
    private Date reloadStartTime;


    @TableField(value = "reloadEndTime")
    @ApiModelProperty(name = "reloadEndTime" , value = "同步结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date reloadEndTime;

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
